import 'package:freezed_annotation/freezed_annotation.dart';

part 'af_coin_product_model.freezed.dart';
part 'af_coin_product_model.g.dart';

@freezed
class AfCoinProductModel with _$AfCoinProductModel {
  factory AfCoinProductModel({
    int? capableRechargeNum,
    String? code,
    double? discount,
    int? exchangeCoin,
    int? extraCoin,
    int? extraCoinPercent,
    String? goodsId,
    String? icon,
    String? invitationId,
    bool? isPromotion,
    int? originalCode,
    double? originalPrice,
    double? originalPriceRupee,
    double? price,
    double? priceRupee,
    int? remainMilliseconds,
    int? surplusMillisecond,
    String? tags,
    String? type,
    int? validity,
    String? validityUnit,
  }) = _AfCoinProductModel;

  factory AfCoinProductModel.fromJson(Map<String, dynamic> json) =>
      _$AfCoinProductModelFromJson(json);
}
